import request from '@/utils/request'

// 查询机器学习特征列表
export function listFeatures(query) {
  return request({
    url: '/base/features/list',
    method: 'get',
    params: query
  })
}

// 查询机器学习特征详细
export function getFeatures(featureId) {
  return request({
    url: '/base/features/' + featureId,
    method: 'get'
  })
}

// 新增机器学习特征
export function addFeatures(data) {
  return request({
    url: '/base/features',
    method: 'post',
    data: data
  })
}

// 修改机器学习特征
export function updateFeatures(data) {
  return request({
    url: '/base/features',
    method: 'put',
    data: data
  })
}

// 删除机器学习特征
export function delFeatures(featureId) {
  return request({
    url: '/base/features/' + featureId,
    method: 'delete'
  })
}
